home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / xinetd / xinetd.2.0.6 / parse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-22  |  854 b   |  39 lines

  1. /*
  2.  * (c) Copyright 1992 by Panagiotis Tsirigotis
  3.  * All rights reserved.  The file named COPYRIGHT specifies the terms 
  4.  * and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef PARSE_H
  8. #define PARSE_H
  9.  
  10. #include "defs.h"
  11.  
  12. /*
  13.  * $Id: parse.h,v 5.1 1992/10/31 23:59:07 panos Exp $
  14.  */
  15.  
  16. typedef enum { NO_ENTRY, BAD_ENTRY, SERVICE_ENTRY, DEFAULTS_ENTRY } entry_e ;
  17.  
  18. enum assign_op { SET_EQ, PLUS_EQ, MINUS_EQ } ;
  19.  
  20. struct attribute
  21. {
  22.    char *name ;                  /* name of attribute */
  23.    unsigned id ;                 /* attribute id */
  24.    int n_values ;
  25.    status_e (*parser)() ;          /* function that parses the attribute */
  26. } ;
  27.  
  28.  
  29. #define ENTRY_BEGIN              '{'
  30. #define ENTRY_END                '}'
  31. #define COMMENT_BEGIN            '#'
  32. #define KW_SERVICE                    "service"
  33. #define KW_DEFAULTS                    "defaults"
  34.  
  35. extern int line_count ;
  36.  
  37. #endif    /* PARSE_H */
  38.  
  39.